package com.eastcom.providor.service.impl;

import java.util.List;

import com.eastcom.bm.atom.Atom_CalendarItem;
import com.eastcom.providor.dao.ICalendarItemDao;
import com.eastcom.providor.service.BaseService;
import com.eastcom.providor.service.ICalendarItemService;

public class CalendarItemService extends BaseService implements ICalendarItemService {
	
	
	private ICalendarItemDao calendarItemDao;
	
	public void setCalendarItemDao(ICalendarItemDao calendarItemDao) {
		this.calendarItemDao = calendarItemDao;
	}

	public List<Atom_CalendarItem> getAllCalendarItems() {
		// TODO Auto-generated method stub
		try{
			//ICalendarItemDao itemDao=DAOFactory.getInstance().getCalendarItemDao();
			return calendarItemDao.getAllCalendarItems();
		}
		catch(Exception e){
			log.error("ICalendarItemService getAllCalendarItems error",e);
		}
		/*
		finally{
			JDBCTemplate.doSessionFinally();
		}
		*/
		
		return null;
	}
    
}
